package com.cloud2eye.base.util;

import com.github.crab2died.converter.WriteConvertible;

import java.util.Date;

/**
 * Created by lafangyuan on 2018/1/9.
 */
public class ExcelWriteConvert implements WriteConvertible {
    @Override
    public Object execWrite(Object o) {
        if(o instanceof Date){
            return DateUtil.dateToString(2, (Date) o);
        }
        return o;
    }
}
